package com.zy.order.entity;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 订单信息表(表t_order_info)ORM实体类
 *
 * @author ZY
 * @date 2021-04-13 10:30:15
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_order_info")
public class OrderInfo implements Serializable {

    private static final long serialVersionUID = -65245750350224770L;

    /**
     * 主键ID
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "JDBC")
    private Integer id;

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 订单金额
     */
    private Double oderPrice;

    /**
     * 下单者ID
     */
    private Integer userId;

    /**
     * 支付时间
     */
    private Date payTime;

    /**
     * 支付状态 1.待支付 2.支付中 3.已支付 4.支付失败 5.退款中 6.退款成功 7.退款失败
     */
    private Integer payStatus;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

}